//
//  HMNetworkTools.h
//  OC-NetworkTools
//
//  Created by 范英强 on 16/1/28.
//  Copyright © 2016年 范英强. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AFNetworking/AFNetworking.h>
typedef NS_ENUM(NSUInteger, HMNetworkToolsMethod) {
    GET,
    POST,
    
};

@interface HMNetworkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;

- (void)requset:(HMNetworkToolsMethod)method url:(NSString *)url params:(id)params success:(void (^)(id responseObject))success failure:(void(^)(NSError *error))failure;
@end
